package com.yunshang.shoppingmall.entity;

import java.util.Date;

public class ShopTaskState {
    //任务启动时间
    private static Date dateStart;
    //用时
    private static long when;
    //项目
    private static String project;
    //消息
    private static String message;
    //总数
    private static Integer total;
    //位置
    private static Integer location;
    //成功
    private static Integer suc;
    //失败
    private static Integer fail;
    //跳过
    private static Integer skip;
    //任务是否更新
    private static boolean update = true;
    //任务是否启动
    private static boolean start;
    //任务是否完成
    private static boolean complete;

    public static Date getDateStart() {
        return dateStart;
    }

    public static long getWhen() {
        return when;
    }

    public static String getProject() {
        return project;
    }

    public static String getMessage() {
        return message;
    }

    public static Integer getTotal() {
        return total;
    }

    public static Integer getLocation() {
        return location;
    }

    public static Integer getSuc() {
        return suc;
    }

    public static Integer getFail() {
        return fail;
    }

    public static Integer getSkip() {
        return skip;
    }

    public static boolean isStart() {
        return start;
    }

    public static boolean getUpdate() {
        return update;
    }

    public static boolean isUpdate() {
        return update;
    }

    public static boolean isComplete() {
        return complete;
    }

    public static void setDateStart(Date dateStart1) {
        ShopTaskState.dateStart = dateStart1;
    }

    public static void setWhen(long when) {
        ShopTaskState.when = when;
    }

    public static void setProject(String project) {
        ShopTaskState.project = project;
    }

    public static void setMessage(String message1) {
        message = message1;
    }

    public static void setTotal(Integer total) {
        ShopTaskState.total = total;
    }

    public static void setLocation(Integer location) {
        ShopTaskState.location = location;
    }

    public static void setSuc(Integer suc) {
        ShopTaskState.suc = suc;
    }

    public static void setFail(Integer fail) {
        ShopTaskState.fail = fail;
    }

    public static void setSkip(Integer skip) {
        ShopTaskState.skip = skip;
    }

    public static void setStart(boolean start) {
        ShopTaskState.start = start;
    }

    public static void setUpdate(boolean update) {
        ShopTaskState.update = update;
    }

    public static void setComplete(boolean complete) {
        ShopTaskState.complete = complete;
    }

    public static String toStringP() {
        return "用时："+when+
                "项目："+project+
                "消息："+message+
                "总数："+total+
                "位置："+location+
                "成功："+suc+
                "失败："+fail+
                "跳过："+skip+
                "";
    }
}
